package com.ngkj.zmfptback.business.service.read.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ngkj.zmfptback.business.bean.CommunityEntity;
import com.ngkj.zmfptback.business.mapper.read.CommunityReadMapper;
import com.ngkj.zmfptback.business.service.read.CommunityReadService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ChenHN
 * @since 2021/12/29 creation
 **/
@Service
@Transactional(readOnly = true)
public class CommunityReadServiceImpl extends ServiceImpl<CommunityReadMapper, CommunityEntity> implements CommunityReadService {

    @Resource
    private CommunityReadMapper communityReadMapper;

    @Override
    public IPage<CommunityEntity> getCommunityPage(Page<CommunityEntity> page, CommunityEntity communityEntity) {
        return communityReadMapper.getCommunityPage(page,communityEntity);
    }

    @Override
    public List<CommunityEntity> getCommunity(String qywzid, String sqid) {
        return communityReadMapper.getCommunity(qywzid,sqid);
    }
}
